LIBS     =   -lm

CFLAGS   =  -O4 

CC       =   g++

OBJECTS  =   main.o alignment.o MbRandom.o model.o tree.o settings.o

PROGS    = eg

all:		$(PROGS)

eg:		$(OBJECTS)
		$(CC) $(CFLAGS) $(OBJECTS) $(LIBS) -o eg
		
main.o:	main.cpp
		$(CC) $(CFLAGS) -c main.cpp

alignment.o:	alignment.cpp
		$(CC) $(CFLAGS) -c alignment.cpp

MbRandom.o:	MbRandom.cpp
		$(CC) $(CFLAGS) -c MbRandom.cpp

model.o:	model.cpp
		$(CC) $(CFLAGS) -c model.cpp

tree.o:	tree.cpp
		$(CC) $(CFLAGS) -c tree.cpp

settings.o:	settings.cpp
		$(CC) $(CFLAGS) -c settings.cpp

clean:		
		rm -f *.o
